package com.trkj.service;

import com.github.pagehelper.PageInfo;
import com.trkj.entity.RoleEntity;
import com.trkj.entity.UserEntity;
import com.trkj.entity.UserRoleEntity;

import java.util.List;

public interface UserService {
    PageInfo<UserRoleEntity> UserList(UserRoleEntity userRoleEntity, int currentPage, int pageSize);
    List<RoleEntity> RoleList();
    List<UserEntity> MaxUserId();
    boolean AddUser(UserEntity userEntity);
    List<UserEntity> ChaUseridList(int user_id);
    boolean UpdUser(UserEntity userEntity);
    boolean AddRole(RoleEntity roleEntity);
    boolean AddUserRole(UserRoleEntity userRoleEntity);
    boolean UpdUserRole(UserRoleEntity userRoleEntity);
    boolean DelUserRole(int user_id);
    boolean DelUser(int user_id);
    List<UserEntity> ZhiXingRen();
}
